package com.evon.yardmanagement.model;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
/**
 * This class will act as the base entity class for all model classes.
 * Provides the audit property and id property.
 * Assumption -  All id columns will be of same time in all existing models. 
 * @author vgaurav
 *
 */
@MappedSuperclass
public class BaseModel extends Auditable implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	//Primary key of the model
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	

}
